package com.ebupt.migu.music.system.service;

import com.ebupt.migu.music.common.entity.ResultObject;
import com.ebupt.migu.music.system.mapper.DictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DictService {

    @Autowired
    private DictMapper dictMapper;

    /**
     *  查询自动触发参数配置
     */
    public ResultObject qryAutoTriParam(Map<String, Object> param) {
        ResultObject res = new ResultObject<>();
        try {
            List<Map<String,Object>> list = dictMapper.qryAutoTriParam(param);
            res.setData(list);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return res;
    }

}
